package com.mall.business.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
        import com.mall.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mall.business.mapper.TProblemMapper;
import com.mall.business.domain.TProblem;
import com.mall.business.service.ITProblemService;

/**
 * 问题反馈Service业务层处理
 *
 * @author ruoyi
 * @date 2025-03-31
 */
@Service
public class TProblemServiceImpl extends ServiceImpl<TProblemMapper,TProblem>  implements ITProblemService
{
    @Autowired
    private TProblemMapper tProblemMapper;

    /**
     * 查询问题反馈
     *
     * @param id 问题反馈主键
     * @return 问题反馈
     */
    @Override
    public TProblem selectTProblemById(String id)
    {
        return tProblemMapper.selectTProblemById(id);
    }

    /**
     * 查询问题反馈列表
     *
     * @param tProblem 问题反馈
     * @return 问题反馈
     */
    @Override
    public List<TProblem> selectTProblemList(TProblem tProblem)
    {
        return tProblemMapper.selectTProblemList(tProblem);
    }

    /**
     * 新增问题反馈
     *
     * @param tProblem 问题反馈
     * @return 结果
     */
    @Override
    public int insertTProblem(TProblem tProblem)
    {
                tProblem.setCreateTime(DateUtils.getNowDate());
            return tProblemMapper.insertTProblem(tProblem);
    }

    /**
     * 修改问题反馈
     *
     * @param tProblem 问题反馈
     * @return 结果
     */
    @Override
    public int updateTProblem(TProblem tProblem)
    {
                tProblem.setUpdateTime(DateUtils.getNowDate());
        return tProblemMapper.updateTProblem(tProblem);
    }

    /**
     * 批量删除问题反馈
     *
     * @param ids 需要删除的问题反馈主键
     * @return 结果
     */
    @Override
    public int deleteTProblemByIds(String[] ids)
    {
        return tProblemMapper.deleteTProblemByIds(ids);
    }

    /**
     * 删除问题反馈信息
     *
     * @param id 问题反馈主键
     * @return 结果
     */
    @Override
    public int deleteTProblemById(String id)
    {
        return tProblemMapper.deleteTProblemById(id);
    }
}
